/*
 // * 
 */
package dk.aiszone.test;

import java.util.Map;
import java.util.Set;

import dk.aiszone.lang.Class2;

public class Test2<K extends Map<String, Set<String>>, L extends Set<String>> extends Class2<Set<String>, Boolean> {

    public transient static final Map<String, Set<String>> city2names = new HashMap<String, Set<String>>();
    private boolean bold;
    private Set<String> texts;

    public Test2() {
    // No implementation.
    }

    public Test2(boolean bold, Set<String> texts) {
        this.bold = bold;
        this.texts = texts;
    }

    public boolean contains(String text) {
        for (Iterator<String> iter = texts.iterator(); iter.hasNext();) {
            if (text.equals(iter.next())) {
                return true;
            }
        }
        return false;
    }

    public boolean contains(String text, String optional) {
        for (Iterator<String> iter = texts.iterator(); iter.hasNext();) {
            if (text.equals(iter.next())) {
                return true;
            }
        }
        return false;
    }

    public Set<String> getTexts() {
        System.out.println("Returning texts");
        return texts;
    }

    public boolean isBold() {
        return bold;
    }

}